<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <title></title>
  </head>
  <body>
  	<h3>发布新闻</h3>
	<form action="News.do?op=insert" method="post">
		标题：<input type="text" name="title">
		<hr>
		是否推荐：<input type="radio" name="hot" value="1">推荐
				<input type="radio" name="hot" value="0" checked="checked">不推荐
		<hr>
		新闻类型：
		<select name="types" >
			<c:forEach var="types" items="${ requestScope.typeslist }">
				<option value="${types.typeid}">${types.title}</option>
			</c:forEach>
		</select>
		<hr>
		<div class="row">
			<div style="margin-left: 350px; margin-bottom: 5px;margin-top: 5px"><b>新闻正文</b></div>
			<div class="col-md-12">
				<script id="container" name="content" type="text/plain">
        	这里写你的初始化内容
    			</script>
			    <!-- 配置文件 -->
			    <script type="text/javascript" src="ueditor/ueditor.config.js"></script>
			    <!-- 编辑器源码文件 -->
			    <script type="text/javascript" src="ueditor/ueditor.all.js"></script>
			    <!-- 实例化编辑器 -->
		    	<script type="text/javascript">
		        var ue = UE.getEditor('container');
		        </script>
			</div>
		</div>
		关键字：<input type="text" name="keyword"><hr>
		<button type="submit" style="margin-left: 240px; margin-top: 20px;" class="btn btn-default">提交</button>
		<button type="reset" style="margin-left: 200px; margin-top: 20px;" class="btn btn-default">重置</button>
	</form>
	${ requestScope.newsadd==null ? "" : "requestScope.newsadd" }
  </body>
</html>
